$OpenBSD: patch-deps_eleveldb_c_src_build_deps_sh,v 1.3 2016/05/13 04:29:58 jmatthew Exp $

Don't try to install libsnappy.  Instead, find the headers in the source
tree and get the static library from where it's built.

--- deps/eleveldb/c_src/build_deps.sh.orig	Wed Apr 13 00:46:02 2016
+++ deps/eleveldb/c_src/build_deps.sh	Wed May 11 11:38:36 2016
@@ -71,13 +71,13 @@ case "$1" in
         fi
 
         if [ ! -f system/lib/libsnappy.a ]; then
-            (cd snappy-$SNAPPY_VSN && $MAKE && $MAKE install)
+            (cd snappy-$SNAPPY_VSN && $MAKE)
         fi
 
-        export CFLAGS="$CFLAGS -I $BASEDIR/system/include"
-        export CXXFLAGS="$CXXFLAGS -I $BASEDIR/system/include"
-        export LDFLAGS="$LDFLAGS -L$BASEDIR/system/lib"
-        export LD_LIBRARY_PATH="$BASEDIR/system/lib:$LD_LIBRARY_PATH"
+        export CFLAGS="$CFLAGS -I $BASEDIR/snappy-$SNAPPY_VSN"
+        export CXXFLAGS="$CXXFLAGS -I $BASEDIR/snappy-$SNAPPY_VSN"
+        export LDFLAGS="$LDFLAGS -L$BASEDIR/snappy-$SNAPPY_VSN/.libs"
+        export LD_LIBRARY_PATH="$BASEDIR/snappy-$SNAPPY_VSN/.libs:$LD_LIBRARY_PATH"
         export LEVELDB_VSN="$LEVELDB_VSN"
 
         if [ ! -d leveldb ]; then
